Skip to content

Add missing ADC header include to Arduino Uno R4 overlay#7

Merged
soburi merged 2 commits into
configure_by_connector_deffrom
copilot/sub-pr-4
Feb 10, 2026
Merged

Add missing ADC header include to Arduino Uno R4 overlay#7
soburi merged 2 commits into
configure_by_connector_deffrom
copilot/sub-pr-4

Conversation

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown

The Arduino Uno R4 overlay uses ADC_ACQ_TIME_DEFAULT but lacks the required header include, causing devicetree compilation to fail with an undefined macro error.

Changes

  • Added #include <zephyr/dt-bindings/adc/adc.h> to variants/arduino_uno_r4_r7fa4m1ab3cfm/arduino_uno_r4_r7fa4m1ab3cfm.overlay

This follows the pattern used in other variant overlays (arduino_nano_33_iot, rpi_pico, arduino_mkrzero) that configure ADC channels.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: soburi <458281+soburi@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on configure by connector def PR Add missing ADC header include to Arduino Uno R4 overlay Feb 10, 2026
Copilot AI requested a review from soburi February 10, 2026 22:58
@soburi soburi marked this pull request as ready for review February 10, 2026 23:24
Copilot AI review requested due to automatic review settings February 10, 2026 23:24
@soburi soburi merged commit 0acfbb4 into configure_by_connector_def Feb 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the missing Zephyr ADC dt-bindings include to the Arduino Uno R4 variant overlay so ADC_ACQ_TIME_DEFAULT resolves during devicetree compilation.

Changes:

  • Include zephyr/dt-bindings/adc/adc.h in the Arduino Uno R4 overlay to provide ADC_ACQ_TIME_DEFAULT.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@soburi soburi deleted the copilot/sub-pr-4 branch February 11, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants